home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
comm
/
cnet
/
cnet_backup.lha
/
cnetamigabackup
/
CNetBackUp_UPDATE
< prev
next >
Wrap
Text File
|
1997-04-06
|
3KB
|
69 lines
/**************************************************************************\
$VER: CNet BackUp UPDATE, v3.50 (6-Apr-97) by Dotoran of Frontiers!
\**************************************************************************/
options results;signal on SYNTAX;signal on ERROR;signal on IOERR
a=sourceline(2);parse var a . ", "ver" ("vdate")" .;a=random(,,time("s"))
tr=transmit;se=sendstring;gc=getchar;gu=getuser;gs=getscratch;mg=maygetchar
a="rexxsupport.library";if ~show("l",a) then if ~addlib(a,0,-30) then exit
parse source . . fp .;df=left(fp,max(lastpos('/',fp),lastpos(':',fp)))
tr "f1CNet Amiga BackUp, UPDATE, v3.50n1"
se " This update script should be run if using a version of CNet Amiga "
se "BackUp that is EARLIER than 3.50. It will add the four NEW values to "
se "each of your designated BackUp Sets. Once upgraded, use the `E' command "
se "from within the CNB command to further modify these values.n2Press any "
tr "key to attempt this update...g1"
if ~exists(df"CNetBackUp.CFG") then do
se "n1 I was NOT able to find the `CNetBackUp.CFG' file. I looked in "
se "the `"df"' path for it. This update script should be placed INSIDE "
tr "your `CNetAmigaBackUp/' directory before being run!";exit;end
call open(f1,df"CNetBackUp.CFG","r")
sets=readln(f1);do i=1 to sets;set.i=readln(f1);end i;drives=readln(f1)
call close(f1)
parse var set.1 j"|"j"|"j"|"j"|"j"|"j"|"j"|"j"|"j"|"j
if j~="x" then do
se "n1 It looks like you have already run this update script. If there "
se "was a problem the first time you ran this script, DELETE your "
se "`CNetBackUp.CFG' file, then use the `A' command to ADD your BackUp "
tr "Sets again!";signal UP351;end
call open(f1,df"CNetBackUp.CFG","w")
call writeln(f1,sets)
do i=1 to sets
parse var set.i set"|x" ; set=set"|0|1|0|1|x" ; call writeln(f1,set)
end i
call writeln(f1,drives)
call close(f1)
se "n1 Update completed sucessfully. Check the HISTORY file for a list "
se "of changes this version. Also check the ** NOTES ON USING PATHS ** "
se "section of the README file for important info on specifying complete "
tr "paths within your BackUp Sets!"
UP351:
se "n1 You should now run the `CNetBackUp_UPDATE351' file to complete "
se "your upgrade process. Do you wish to launch it now? [Yes]: ";gc;a=result
if a="N" then do;se "No.n2 Alright, I won't run it now, however be "
se "advised that if you have a BackUp set using BAK as the extension, "
se "this WILL cause problems when you use the CNet Amiga BackUp program, "
tr "or it's AMaint module!";exit;end
tr "Yes!#0"df"CNetBackUp_UPDATE351}"
exit
CHECK:;if ARG() & ARG(1)~="###PANIC" then return ARG(1)
getcarrier;if result="TRUE" then if ARG() then return ARG(1);else return
logentry "Lost Carrier!!";bufferflush;exit
SYNTAX:;ERROR:;IOERR:;e1="n1 Error: "rc" ("errortext(rc)")"
e2=" Line: "left(sigl,4)"File:";c="`"fp", "ver"'";e2=e2" "c;tr e1;tr e2
logentry e1;logentry e2;e=strip(translate(sourceline(sigl),"\{",""))
do while e~="";e3="Source: "left(e,37);tr e3;logentry e3;e=substr(e,38);end
bufferflush
/**************************************************************************\
\****************************************** Frontiers BBS (716)/823-9892 **/